import request from '@/utils/request'


//  查询通知列表
export function queryNoticeList(params) {
    return request({
        url: '/business/system/sysNotice/queryList',
        method: 'get',
        params
    })
}

//  获取通知详情
export function getNotice(params) {
    return request({
        url: '/business/system/sysNotice/getDetail',
        method: 'get',
        params
    })
}

//增加通知
export function addNotice(data) {
    return request({
        url: '/business/system/sysNotice/save',
        method: 'post',
        data
    })
}

//  修改通知
export function updateNotice(data) {
    return request({
        url: '/business/system/sysNotice/update',
        method: 'put',
        data
    })
}

// 删除通知
export function delNotice(params) {
    return request({
        url: `/business/system/sysNotice/delete`,
        method: 'delete',
        params
    })
}